package com.jml.单例模式;

public class 饿汉式 {
    private static final 饿汉式 INSTANCE = new 饿汉式();

    private 饿汉式(){

    }

    public static 饿汉式 getInstance(){
        return INSTANCE;
    }

    public static void main(String[] args) {
        饿汉式 instance = 饿汉式.getInstance();
    }
}
